@mixin flex-row-center {
	display: flex;
	justify-content: center;
	align-items: center;
}

@mixin wrap {
	margin: $ns-margin;
	padding: $ns-padding;
	border-radius: $ns-border-radius;
	background: #fff;
	position: relative;
}
text,
view {
	font-size: $ns-font-size-base;
}
.align-right {
	text-align: right;
}

.detail-container {
	height: 100vh;

	.height-box {
		display: block;
		padding-bottom: 100rpx;
	}

	&.safe-area {
		.height-box {
			display: block;
			padding-bottom: 168rpx;
		}
	}
}

.status-wrap {
	padding: 0 40rpx 40rpx;
	/* #ifdef H5 */
	padding-top: 40rpx;
	/* #endif */
	height: 180rpx;
	image {
		width: 124rpx;
		height: 106rpx;
		margin-right: $ns-margin;
	}

	.order-status-left {
		display: flex;
	}

	& > view {
		text-align: center;
		color: #fff;
	}

	.status-name {
		font-size: $ns-font-size-x-lg;
	}

	.desc {
		margin-left: 20rpx;
	}

	.price {
		font-weight: 600;
	}

	.operation-group {
		text-align: center;
		padding-top: 20rpx;

		.operation-btn {
			line-height: 1;
			padding: 16rpx 50rpx;
			display: inline-block;
			border-radius: 32rpx;
			background: #fff;
			box-shadow: 0 0 14rpx rgba(158, 158, 158, 0.6);
		}
	}
}

.address-wrap {
	@include wrap;
	min-height: 100rpx;
	margin-top: -69rpx;
	.icon {
		position: absolute;
		top: 16rpx;
		margin-right: 20rpx;
		image {
			width: 60rpx;
			height: 60rpx;
		}

		.iconfont {
			line-height: 50rpx;
			font-size: $ns-font-size-lg;
		}
		.iconmendian {
			font-size: $ns-font-size-x-lg;
		}
	}

	.address-info {
		padding-left: 40rpx;

		.info {
			display: flex;
			font-size: $ns-font-size-sm;
		}

		.detail {
			line-height: 1.3;
			font-size: $ns-font-size-sm;
			color: #999;
			margin-top: 10rpx;
		}
	}

	.store-info {
		padding-left: 100rpx;
	}

	.cell-more {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		right: 10rpx;

		.iconfont {
			color: #999;
		}
	}
}

.pickup-info {
	@include wrap;
	padding: 20rpx 30rpx;

	.pickup-point-info {
		.name {
			display: flex;
			height: 50rpx;
			align-items: flex-end;
			margin-bottom: 10px;

			text {
				line-height: 1;
				&.mark {
					font-size: $ns-font-size-x-sm;
					padding: 1px 10rpx;
					border: 0.5px solid #ffffff;
					border-radius: 4rpx;
					margin-left: 10rpx;
				}
			}
		}

		.address,
		.time,
		.contact {
			font-size: $ns-font-size-base;
			line-height: 1;
			margin-top: 16rpx;

			.iconfont {
				color: #999;
				font-size: $ns-font-size-base;
				line-height: 1;
				margin-right: 10rpx;
			}
		}
	}
	.hr {
		border-top: 1px dashed #e5e5e5;
		margin: 20rpx 0;
	}

	.pickup-code-info {
		.info {
			text-align: center;
		}

		.code {
			margin: 0 auto;
			width: 160rpx;
			height: 160rpx;

			image {
				width: 100%;
				height: 100%;
			}
		}
	}
}

.verify-code-wrap {
	@include wrap;

	.wrap {
		line-height: 40rpx;

		.copy {
			font-size: $ns-font-size-x-sm;
			display: inline-block;
			color: #666;
			background: #f7f7f7;
			line-height: 1;
			padding: 6rpx 10rpx;
			margin-left: 10rpx;
			border-radius: 18rpx;
		}
	}

	.hr {
		border-top: 1px dashed #e5e5e5;
		margin: 20rpx 0;
	}

	.code {
		margin: 0 auto;
		width: 200rpx;
		height: 200rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}
}

.site-wrap {
	@include wrap;

	.site-header {
		display: flex;
		align-items: center;

		.icondianpu {
			display: inline-block;
			line-height: 1;
			margin-right: 12rpx;
			font-size: $ns-font-size-lg;
		}
	}

	.site-body {
		.goods-wrap {
			margin-bottom: 20rpx;
			display: flex;
			position: relative;

			&:last-of-type {
				margin-bottom: 0;
			}

			.goods-img {
				width: 125rpx;
				height: 125rpx;
				padding: 20rpx 0 0 0;
				margin-right: 20rpx;

				image {
					width: 100%;
					height: 100%;
					border-radius: $ns-border-radius;
				}
			}

			.goods-info {
				flex: 1;
				position: relative;
				padding: 20rpx 0 0 0;
				// max-width: calc(100% - 200rpx);
				display: flex;
				flex-direction: column;
				justify-content: space-between;

				.goods-name {
					display: -webkit-box;
					-webkit-box-orient: vertical;
					-webkit-line-clamp: 2;
					overflow: hidden;
					line-height: 1.5;
				}

				.goods-sub-section {
					width: 100%;
					line-height: 1.3;
					display: flex;

					.goods-price {
						font-weight: 700;
						font-size: $ns-font-size-x-sm;
					}

					.unit {
						font-weight: normal;
						font-size: $ns-font-size-base;
						margin-right: 2rpx;
					}

					view {
						flex: 1;
						line-height: 1.3;
						&:last-of-type {
							text-align: right;

							.iconfont {
								line-height: 1;
								font-size: $ns-font-size-base;
							}
						}
					}
				}

				.goods-operation {
					text-align: right;
					padding-top: 20rpx;

					navigator {
						display: inline-block;
					}

					.operation-btn {
						line-height: 1;
						padding: 14rpx 20rpx;
						color: #333;
						display: inline-block;
						border-radius: 28rpx;
						background: #fff;
						border: 0.5px solid #999;
						font-size: $ns-font-size-base;
						margin-left: 10rpx;
					}
				}
			}
		}
	}
}

.order-cell {
	display: flex;
	margin: 20rpx 0;
	align-items: center;
	background: #fff;
	line-height: 40rpx;

	.tit {
		text-align: left;
	}

	.box {
		flex: 1;
		padding: 0 20rpx;
		line-height: inherit;

		.textarea {
			height: 40rpx;
		}
	}

	.iconfont {
		color: #bbb;
		font-size: $ns-font-size-lg;
	}

	.order-pay {
		padding: 0;

		text {
			display: inline-block;
			margin-left: 6rpx;
		}
	}
}

.order-summary {
	@include wrap;

	.order-cell {
		.tit {
			color: #999;
			width: 170rpx;
		}

		.box {
			display: flex;
			align-items: center;
		}

		.copy {
			font-size: $ns-font-size-x-sm;
			display: inline-block;
			background: #f7f7f7;
			line-height: 1;
			padding: 6rpx 10rpx;
			margin-left: 10rpx;
			border-radius: 18rpx;
			border: 2rpx solid #d2d2d2;
		}
	}

	.hr {
		// width: calc(100% - 190rpx);
		width: 100%;
		height: 2rpx;
		background: #f7f7f7;
		margin-bottom: 30rpx;
	}
}

.order-money {
	@include wrap;

	.order-cell {
		.tit {
			// color: #999;
		}

		.box {
			font-weight: 600;
			padding: 0;

			.operator {
				font-size: $ns-font-size-base;
				margin-right: 6rpx;
			}
		}
	}
}

.kefu {
	@include wrap;
	margin: 30rpx 0 10rpx;
	border-top: 2rpx solid #f1f1f1;
	padding-bottom: 0;
	padding-top: 30rpx;
	& > view {
		@include flex-row-center;

		.iconfont {
			font-weight: bold;
			margin-right: 10rpx;
			font-size: $ns-font-size-lg;
			line-height: 1;
		}
	}

	button {
		width: 100%;
		height: 100%;
		position: absolute;
		border: none;
		z-index: 1;
		padding: 0;
		margin: 0;
		background: none;

		&::after {
			border: none !important;
		}
	}
}

.order-operation {
	position: fixed;
	z-index: 5;
	left: 0;
	bottom: 0;
	width: 100vw;
	height: 100rpx;
	background: #fff;
	// box-shadow: 0 0px 10px rgba(0,0,0,.1);
	text-align: right;
	line-height: 100rpx;

	&.bottom-safe-area {		
		padding-bottom: constant(safe-area-inset-bottom);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.order-box-btn {
		margin-right: $ns-margin;
		margin-left: 0;
	}
}
.status-name {
	view {
		color: #fff;
		&:last-of-type {
			font-size: $ns-font-size-base;
		}
	}
}

.head-nav {
	width: 100%;
	height: var(--status-bar-height);
}

.head-nav.active {
	padding-top: 40rpx;
}

.head-return {
	height: 90rpx;
	line-height: 90rpx;
	color: #fff;
	font-weight: 600;
	font-size: $ns-font-size-x-lg;
	position: relative;
	text-align: center;
	text {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		left: $ns-margin;
		display: inline-block;
		margin-right: 10rpx;
		font-size: $ns-font-size-x-lg;
	}
}

.order-box-btn {
	height: 48rpx !important;
	line-height: 48rpx !important;
	font-size: $ns-font-size-base !important;
}

.store-detail view {
	font-size: $ns-font-size-x-sm;
}

.store-wrap {
	@include wrap;
	margin-top: -76rpx;
	padding: 24rpx;
	.store-info {
		display: flex;
		align-items: center;
		.icon {
			width: 60rpx;
			height: 60rpx;
			background-color: $base-color;
			border-radius: 50%;
			position: relative;
			margin-right: 26rpx;
			align-self: flex-start;
			margin-top: 12rpx;
			&.image-icon {
				background-color: unset;
				image {
					width: 100%;
					height: 100%;
				}
			}
			.iconfont {
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				font-size: 32rpx;
				color: #fff;
			}
		}
		.store-info-detail {
			flex: 1;
			.store-detail view {
				font-size: $ns-font-size-sm + 2rpx;
			}
			& > view:first-of-type {
				font-size: $ns-font-size-base + 2rpx;
			}
		}
		.cell-more {
			margin-left: 50rpx;
		}
	}
}
.pick-block {
	&.first-pick-block {
		border-top: 2rpx solid #f1f1f1;
	}
	display: flex;
	align-items: center;
	margin-top: 20rpx;
	padding-top: 20rpx;
	input,
	.last-child {
		flex: 1;
		text-align: right;
		font-size: $ns-font-size-base;
	}
}
.sku {
	display: flex;
	line-height: 1;
	margin-top: 10rpx;
	margin-bottom: 10rpx;
}
.goods-spec{
	color: #838383;
	font-size: $ns-font-size-sm;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
	flex:1
}
